<template>
	<div>
		<h1>其它三个生命周期</h1>
	</div>
</template>
<script>
export default {
	created() {
		throw Error('自定义的错误')
	},
	/* keepalive 组件中的动态组件，两个生命周期才会执行 */
	activated() {
		console.log('lifecycle 组件激活了')
	},
	deactivated() {
		console.log('lifecycle组件失活了')
	},
}
</script>
<style scoped></style>
